<html>
<title><?echo $username?> - Live Support for website</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK href="styles/main.css" type=text/css rel=stylesheet>
<body leftmargin="0" topmargin="0">
<form method="post" onSubmit="return check(this)" enctype="multipart/form-data">
<br /><br />
<table width="600" border="0" cellspacing="5" cellpadding="2" style="background:#EEF5FE; border:1px solid #6888DE" align="center">
 <tr>
 	<td align="center" colspan="2" style="color:#FF0000">
		Config Account<br>
		<?echo $alert?>
	</td>
 </tr>
 <tr>
 	<td align="right">
		Account Name	</td>
	<td>
		<b style="font-size:12px"><?echo $user['cUserName']?>	</b></td>
 </tr>
 <tr>
 	<td align="right">
		Password (if change)	</td>
	<td>
		<input type="password" name="password" id="password" value="" class="t1"/>	</td>
 </tr>
 <tr>
 	<td align="right">
		Confirm Password	</td>
	<td>
		<input type="password" name="password2" id="password2" value="" class="t1"/>	</td>
 </tr>
 <tr>
 	<td align="right">
		Full Name	</td>
	<td>
		<input type="text" name="fullname" id="fullname"  value="<?echo $user['cFullName']?>" class="t1"/>	</td>
 </tr>
 <tr>
 	<td align="right">
		Email	</td>
	<td>
		<input type="text" name="email" id="email"  value="<?echo $user['cEmail']?>" class="t1"/>	</td>
 </tr>
  <tr>
 	<td align="right">
		Website	</td>
	<td>
		<input type="text" name="Website" id="Website"  value="<?echo empty($user['cWebsite'])? "http://": $user['cWebsite']?>" class="t1"/>	</td>
 </tr>
 <tr>
 	<td align="right">
		Welcome	</td>
	<td>
		<textarea name="Welcome" class="t1" style="height:80px"><?echo $user['cWelcome']?></textarea></td>
 </tr>
 <tr>
 	<td align="right">
		Banner	</td>
	<td>
		<input type="hidden" name="ImgBanner" value="<?echo $user['cBanner']?>" />
		<input type="file" name="ImgFileBanner" id="ImgFileBanner" />	</td>
 </tr>
  <tr>
 	<td>	</td>
	<td>
		<input type="submit" value="Update" style="width:80"/>	
		<input type="button" value="Rooms" style="width:80" onClick="location='?opt=rooms'"/>	
		<input type="button" value="Logout" style="width:80" onClick="location.href='?opt=logout'"/>	
		</td>
 </tr>
</table>
</form>
</body>
</html>
<script>
function $(id)
{
	return document.getElementById(id);
}
function check(f)
{	
	if($("password").value.length<6 && $("password").value.length>0)
	{
		alert("Pl. Enter password length>5");
		return false;
	}
	if($("password2").value!=$("password").value  && $("password").value.length>0)
	{
		alert("Pl. Confirm password");
		return false;
	}
	if($("email").value.length<6)
	{
		alert("Pl. Enter Email");
		return false;
	}
}
</script>